home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / BBS / MUBBS / MUBBS etc.cpt / Module Source / E-mail / Email.h < prev    next >
Text File  |  1991-11-16  |  3KB  |  61 lines

  1. #define        UNREAD                0
  2. #define        READ                1
  3. #define        DELETED                2
  4. #define        MAXEMAIL            25
  5. #define        pause()                {if(!cmd1("(PAUSE)")) goto byebye;send("]");}
  6.  
  7. typedef struct    MsgStruct{
  8.                 char FromUser[36];   /* The person who sent the message               */
  9.                 char ToUser[36];     /* The person the message is to                  */
  10.                 char title[71];      /* The title of the message                      */
  11.                 int status;          /* 0 = unread    1 = Read     2 = deleted        */
  12.                 char NetAddress[21]; /* Fidonet address of the ToUser(UNUSED)         */
  13.                 char reserved1[21];  /* Reserved, do not use                          */
  14.                 char reserved2[21];  /* Reserved, do not use                          */
  15.                 long int offset;     /* Offset of the message in Email.Text           */
  16.                 int length;          /* Length of message in chars                    */
  17.                 char DateSent[26];   /* String of Date/Time sent                      */
  18.                 char temp[6];
  19.                 };
  20.  
  21. typedef struct    FixStruct{
  22.                 long int offset;     /* Offset of the message in Email.Text           */
  23.                 int length;          /* Length of message in chars                    */
  24.                 };
  25.  
  26. typedef struct    EnterStruct{
  27.                 char FromUser[36];      /* The person who sent the message            */
  28.                 char ToUser[36];        /* The person the message is to               */
  29.                 char title[71];         /* The title of the message                   */
  30.                 int status;             /* 0 = unread    1 = Read     2 = deleted     */
  31.                 char NetAddress[21];    /* Fidonet address of the ToUser(UNUSED)      */
  32.                 char reserved1[21];     /* Reserved, do not use                          */
  33.                 char reserved2[21];     /* Reserved, do not use                          */
  34.                 long int offset;        /* Offset of the message in Email.Text        */
  35.                 int length;             /* Length of message in chars                 */
  36.                 char DateSent[26];      /* String of Date/Time sent                   */
  37.                 char emailtext[51][82]; /* The text of the email message              */
  38.                 int numlines;            /* */
  39.                 int result;             /* Result to pass back                        */
  40.  
  41.                 };
  42.  
  43. typedef struct    LoadStruct{
  44.                 long int i_headers[MAXEMAIL];
  45.                 char FromUser[MAXEMAIL][36];
  46.                 char title[MAXEMAIL][71];
  47.                 int status[MAXEMAIL];
  48.                 char NetAddress[MAXEMAIL][21];
  49.                 char reserved1[MAXEMAIL][21];
  50.                 char reserved2[MAXEMAIL][21];
  51.                 long int offset[MAXEMAIL];
  52.                 int length[MAXEMAIL];
  53.                 char DateSent[MAXEMAIL][26];
  54.                 int reservedint1;
  55.                 int reservedint2;
  56.                 int choice;
  57.                 int numemail;
  58.                 int result;
  59.                 };
  60.  
  61.